import { useMemo } from 'react';
import { IMECompositionContext } from './context';
import { IIMECompositionProps } from './types';
import React from 'react';
export const IMEComposition: React.FC<IIMECompositionProps> = ({
  enable = true,
  children
}) => {
  const ctx = useMemo(
    () => ({
      enable
    }),
    [enable]
  )

  return (
    <IMECompositionContext.Provider value={ctx}>
      {children}
    </IMECompositionContext.Provider>
  )
}
